<!-- script/PETools/Aries/Arena.newinstance.html -->
<!-- one needs to save the initial instance params table(can be nil) to Page._result when page is closed 
The instance creation function will use it to create new instance. If nil, creation will be canceled. 
-->
<pe:mcml>
<script type="text/npl" src="">
Page._result = nil;
function OnSubmit(name, params)
    Page._result = params;
    commonlib.echo(params);
    Page:CloseWindow();
end
</script>
<div style="width:400px;margin:5px">
    <form name="NewInstanceForm">
    <div>arena id: <input name="id" value="10000"/></div>
    <hr />
    <input type="submit" name="OK" value="Create" onclick="OnSubmit" />
    </form>
</div>
</pe:mcml>
